Meaning of the word "you can choose your friends but you cannot choose your family" in English

What does "you can choose your friends but you cannot choose your family" mean in English? Explore the meaning, pronunciation, and specific usage of this word with Lingoland.

you can choose your friends but you cannot choose your family

US /ju kæn tʃuːz jɔːr frendz bʌt ju ˈkæn.ɑːt tʃuːz jɔːr ˈfæm.ə.li/
UK /ju kæn tʃuːz jɔː frendz bʌt ju ˈkæn.ɒt tʃuːz jɔː ˈfæm.əl.i/
"you can choose your friends but you cannot choose your family" picture

Idiom

used to say that you can decide who your friends are, but you are stuck with your relatives regardless of what they are like

Example:
My brother is annoying, but you can choose your friends but you cannot choose your family.
I have to invite my cousin to the wedding; you can choose your friends but you cannot choose your family.